﻿using A.M.ETO;
using A.M.Storage.I_Application;
using Q.M.Finance.Domain.DTO;
using Q.M.Finance.Domain.Entity;
using Q.M.Finance.Infrastruecure.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Q.M.Finance.Application.IServices
{
    public interface IIncomeServices : IBaseServices<income, string>
    {
        /// <summary>
        /// 收入管理显示+分页+查询
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        PageETO<incomeShowDTO> GetincomeInfo(string? receiptid, int pageIndex, int pageSize);
        /// <summary>
        /// 添加收入管理
        /// </summary>
        /// <param name="incomeAddDTO"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> GetincomeAddInfo(incomeAddDTO incomeAddDTO);
        /// <summary>
        /// 修改收入管理
        /// </summary>
        /// <param name="incomeUpdateDTO"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> GetincomeUpdateInfo(incomeShowDTO incomeUpdateDTO);

        /// <summary>
        /// 反填收入管理
        /// </summary>
        /// <param name="receiptid"></param>
        /// <returns></returns>
        Task<income> FindincomeInfo(string? receiptid);

        /// <summary>
        /// 删除收入管理
        /// </summary>
        /// <param name="incomeUpdateDTO"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> Deleteincome(string? incomeUpdateDTO);
      
    }
}
